package com.gm.mygmc.crm.security.dto;

import java.io.Serializable;

import net.sf.oval.constraints.Length;
import net.sf.oval.constraints.NotEmpty;
import net.sf.oval.constraints.NotNull;

import com.gm.mygmc.crm.base.BaseDTO;

public class UserInfoDTO extends BaseDTO implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long userId;
	
	@NotNull
	@NotEmpty
	@Length(max=32)
	private String userName;
	
	@NotNull
	@NotEmpty	
	@Length(max=32)
	private String password;
	
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Override
	public String toString() {
		return "UserInfoDTO [password=" + password + ", userId=" + userId
				+ ", userName=" + userName + "]";
	}
	
}
